package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import play.data.validation.Email;
import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
@Table(name="message")
public class Message extends Model {
	
	@Required(message="Name is required")
	public String name;
	
	@Required(message="Email is required")
	@Email(message="Email is invalid")
	public String email;
	
	
	public String country;
	
	@Required(message="Message is required")
	@Lob
	public String message;
	
	public String referer;
	
	public Date createTime = new Date();
}
